import redis

sr_obj = redis.StrictRedis()

result = sr_obj.set('py1','Tom')
print(result)